package cn.mesmile.flow.listen;

import org.flowable.engine.delegate.DelegateExecution;
import org.flowable.engine.delegate.JavaDelegate;
import org.flowable.engine.delegate.TaskListener;
import org.flowable.task.service.delegate.DelegateTask;

/**
 * @author zb
 * @date 2020/12/7 11:58
 * @Description  任务拦截器
 */
public class BossTaskHandler implements JavaDelegate {

//    @Override
//    public void notify(DelegateTask task) {
////        task.setAssignee("boss");
//        System.out.println(">>>>>>>>>>> boss 走到了这个步骤");
//    }

    @Override
    public void execute(DelegateExecution execution) {
        System.out.println(">>>>>>>>>>> boss 走到了这个步骤");
    }
}
